package models;

import javax.persistence.Entity;

import play.data.validation.MaxSize;
import play.db.jpa.Model;

@Entity(name="setting")
public class Setting extends Model{

	private static final long serialVersionUID = 1L;
	
	public String logo;
	public String siteName;
	public String subName;
	public String email;
	public String password;
	public String keywords;
	public String description;
	public String footer;
	
	public static boolean connect(String username,String password){
		return find("email = ? and password = ?",username,password).first()!= null;
	}
}
